package com.foreknow.demo5;

public class Book {
    //图书编号
    private int sid;
    //图书的名称
    private String bname;
    //图书的价格
    private double price;
    //数量
    private int storage;

    public Book() {

    }

    public Book(int sid,String bname,double price,int storage) {
        this.sid = sid;
        this.bname = bname;
        this.price = price;
        this.storage = storage;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStorage() {
        return storage;
    }

    public void setStorage(int storage) {
        this.storage = storage;
    }
}
